import { ref } from "vue";
const Notify = {
    active: ref(false),
    msg: ref(""),
    type: ref("success"),
    alert: function alert(msg = "", type = "success", time = 1000) {
        this.type.value = type
        this.msg.value = msg;
        if (this.active.value !== true) {
            this.active.value = true;
            setTimeout(() => {
                this.active.value = false;
            }, time);
        }
    }
};

export { Notify };
